<%@ page language="java"  pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>
<%@ include file="../common/tags.jsp" %>   
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>一卡会员系统</title>

<link href="<%=path %>/themes/default/style.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="<%=path %>/themes/css/core.css" rel="stylesheet" type="text/css" media="screen"/>
<link href="<%=path %>/themes/css/print.css" rel="stylesheet" type="text/css" media="print"/>
<link href="<%=path %>/uploadify/css/uploadify.css" rel="stylesheet" type="text/css" media="screen"/>

<link href="<%=path %>/themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>

<script src="<%=path %>/js/speedup.js" type="text/javascript"></script>
<script src="<%=path %>/js/jquery-1.7.2.js" type="text/javascript"></script>
<script src="<%=path %>/js/jquery.cookie.js" type="text/javascript"></script>
<script src="<%=path %>/js/jquery.validate.js" type="text/javascript"></script>
<script src="<%=path %>/js/jquery.bgiframe.js" type="text/javascript"></script>
<script src="<%=path %>/xheditor/xheditor-1.1.14-zh-cn.min.js" type="text/javascript"></script>
<!-- <script src="<%=path %>/uploadify/scripts/swfobject.js" type="text/javascript"></script> -->
<script src="<%=path %>/uploadify/scripts/jquery.uploadify.v2.1.0.js" type="text/javascript"></script>

<!-- svg图表  supports Firefox 3.0+, Safari 3.0+, Chrome 5.0+, Opera 9.5+ and Internet Explorer 6.0+ -->
<script type="text/javascript" src="<%=path %>/chart/raphael.js"></script>
<script type="text/javascript" src="<%=path %>/chart/g.raphael.js"></script>
<script type="text/javascript" src="<%=path %>/chart/g.bar.js"></script>
<script type="text/javascript" src="<%=path %>/chart/g.line.js"></script>
<script type="text/javascript" src="<%=path %>/chart/g.pie.js"></script>
<script type="text/javascript" src="<%=path %>/chart/g.dot.js"></script>

<script src="<%=path %>/js/dwz.core.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.util.date.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.validate.method.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.regional.zh.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.barDrag.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.drag.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.tree.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.accordion.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.ui.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.theme.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.switchEnv.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.alertMsg.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.contextmenu.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.navTab.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.tab.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.resize.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.dialog.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.dialogDrag.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.sortDrag.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.cssTable.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.stable.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.taskBar.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.ajax.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.pagination.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.database.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.datepicker.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.effects.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.panel.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.checkbox.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.history.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.combox.js" type="text/javascript"></script>
<script src="<%=path %>/js/dwz.print.js" type="text/javascript"></script>
<!--
<script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>

<script src="bin/dwz.min.js" type="text/javascript"></script>
-->
<script src="<%=path %>/js/dwz.regional.zh.js" type="text/javascript"></script>

<script type="text/javascript">
$(function(){
	DWZ.init("<%=path %>/jsp/mainframe/dwz.frag.xml", {
		//loginUrl:"<%=path %>/login/loginDailogPage.action", loginTitle:"登录",	// 弹出登录对话框
		loginUrl:"http://www.baidu.com/",
		//loginUrl:"<%=path%>/login/loginPage.action",	// 跳到登录页面
		statusCode:{ok:200, error:300, timeout:301}, //【可选】
		pageInfo:{pageNum:"pageNum", numPerPage:"numPerPage", orderField:"orderField", orderDirection:"orderDirection"}, //【可选】
		debug:false,	// 调试模式 【true|false】
		callback:function(){
			initEnv();
			$("#themeList").theme({themeBase:"<%=path %>/themes"});
		}
	});
});

function changePassword(){
	var url = "<%=path %>/jsp/user/changePassword.jsp";
	var options = {mask:true,mixable:true,minable:true,resizable:true,height:200}; 
	$.pdialog.open(url, "changePasswordDialog", "修改密码",options);
}

</script>
</head>

<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<a class="logo" href="javascript:void();">标志</a>
				<ul class="nav">
					<li><a href="<%=path%>/jsp/mainframe/mainframe.jsp">主页</a></li>
					<li><a><shiro:principal/></a></li>
					<li><a href="javascript:changePassword();" id="button-open-dialog" target="_top">修改密码</a></li>
					<li><a href="<%=path%>/login/logout.action">退出</a></li>
				</ul>
				<ul class="themeList" id="themeList">
					<li theme="azure"><div class="selected">天蓝</div></li>
					<li theme="default"><div>蓝色</div></li>
					<li theme="green"><div>绿色</div></li>
					<li theme="purple"><div>紫色</div></li>
					<li theme="silver"><div>银色</div></li>
				</ul>
			</div>
			<!-- navMenu -->
		</div>
		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			<div id="sidebar">
				<div class="toggleCollapse"><h2>主菜单</h2><div>收缩</div></div>
				
				<div class="accordion" fillSpace="sidebar">
					<shiro:hasAnyRoles name="listRegisterUser">
						<div class="accordionHeader">
							<h2><span>Folder</span>用户管理</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
								<shiro:hasPermission name="listRegisterUser">
								<li><a href="<%=path %>/registerUser/listRegisterUser.action" target="navTab" rel="registerUserList" reloadFlag=1 fresh="true">注册用户管理</a></li>
								</shiro:hasPermission>
							</ul>
						</div>
					</shiro:hasAnyRoles>
					<shiro:hasAnyRoles name="listFavourableType,listFavourableEntity,listFavourable">
						<div class="accordionHeader">
							<h2><span>Folder</span>优惠券管理</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
									<shiro:hasPermission name="listFavourableType">
										<li><a href="<%=path %>/favourableType/listFavourableType.action" target="navTab" rel="favourableTypeList" reloadFlag=1 fresh="true">优惠券类别列表</a></li>
									</shiro:hasPermission>
									<shiro:hasPermission name="listFavourableEntity">
										<li><a href="<%=path %>/favourableEntity/listFavourableEntity.action" target="navTab" rel="favourableEntityList" reloadFlag=1 fresh="true">优惠券实体列表</a></li>
									</shiro:hasPermission>
									<shiro:hasPermission name="listFavourable">
										<li><a href="<%=path %>/favourable/listFavourable.action" target="navTab" rel="favourableList" reloadFlag=1 fresh="true">优惠券实例列表</a></li>
									</shiro:hasPermission>
							</ul>
						</div>
					</shiro:hasAnyRoles>
					<shiro:hasAnyRoles name="listCardEntity,listMemberCard,listCost,listRechargeLog,listMemberCardUpgradeLog">
						<div class="accordionHeader">
							<h2><span>Folder</span>会员卡管理</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
								<shiro:hasPermission name="listCardEntity">
										<li><a href="<%=path %>/cardEntity/listCardEntity.action" target="navTab" rel="cardEntityList" reloadFlag=1 fresh="true">会员卡实体列表</a></li>
								</shiro:hasPermission>
								<shiro:hasPermission name="listMemberCard">
										<li><a href="<%=path %>/memberCard/listMemberCard.action" target="navTab" rel="membercardList" reloadFlag=1 fresh="true">会员卡实例列表</a></li>
								</shiro:hasPermission>
								<shiro:hasPermission name="listCost">
										<li><a href="<%=path %>/cost/listCost.action" target="navTab" rel="costList" reloadFlag=1 fresh="true">消费记录</a></li>
								</shiro:hasPermission>
								<shiro:hasPermission name="listRechargeLog">
										<li><a href="<%=path %>/rechargeLog/listRechargeLog.action" target="navTab" rel="listRechargeLog" reloadFlag=1 fresh="true">充值记录</a></li>
								</shiro:hasPermission>
								<shiro:hasPermission name="listMemberCardUpgradeLog">
										<li><a href="<%=path%>/memberCardUpgradeLog/listMemberCardUpgradeLog.action" target="navTab" rel="memberCardUpgradeLogList" reloadFlag=1 fresh="true">升级记录</a></li>
								</shiro:hasPermission>
							</ul>
						</div>
					</shiro:hasAnyRoles>
					<shiro:hasAnyRoles name="listShop,listRegioninfo">
						<div class="accordionHeader">
							<h2><span>Folder</span>区域管理</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
										<shiro:hasPermission name="listRegioninfo">
										<li><a href="<%=path %>/regioninfo/listRegioninfo.action" target="navTab" rel="regioninfoList" reloadFlag=1 fresh="true">区域</a></li>
										</shiro:hasPermission>
							</ul>
						</div>
					</shiro:hasAnyRoles>
					<shiro:hasAnyRoles name="listCustomer,listCustomerKind,listUser,listCustomerAccount,listProduct,listProductKind,listScoreRule">
						<div class="accordionHeader">
							<h2><span>Folder</span>商家管理</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
									<shiro:hasPermission name="listCustomer">
										<li><a href="<%=path %>/customer/listCustomer.action" target="navTab" rel="customerList" reloadFlag=1 fresh="true">商家列表</a></li>
									</shiro:hasPermission>
									<shiro:hasPermission name="listCustomerKind">
										<li><a href="<%=path %>/customerKind/listCustomerKind.action" target="navTab" rel="customerKindList" reloadFlag=1 fresh="true">商家分类列表</a></li>
									</shiro:hasPermission>
									<shiro:hasPermission name="listUser">
										<li><a href="<%=path %>/user/listUser.action" target="navTab" rel="userList" reloadFlag=1 fresh="true" navTabId="userList">商家员工管理</a></li>
									</shiro:hasPermission>
									<!-- 
									<shiro:hasPermission name="listCustomerAccount">
										<li><a href="<%=path %>/customerAccount/listCustomerAccount.action" target="navTab" rel="customerAccountList" reloadFlag=1 fresh="true">商家账户列表</a></li>
									</shiro:hasPermission>
									 -->
									<shiro:hasPermission name="listProduct">
										<li><a href="<%=path %>/product/listProduct.action" target="navTab" rel="productList" reloadFlag=1 fresh="true">商品列表</a></li>
									</shiro:hasPermission>
									<shiro:hasPermission name="listProductKind">
										<li><a href="<%=path %>/productKind/listProductKind.action" target="navTab" rel="productKindList" reloadFlag=1 fresh="true">商品分类列表</a></li>
									</shiro:hasPermission>
									<li><a href="<%=path %>/cardLevel/listCardLevel.action" target="navTab" rel="cardLevleList" reloadFlag=1 fresh="true">会员卡级别</a></li>
									<li><a href="<%=path %>/cardAgio/listCardAgio.action" target="navTab" rel="cardAgioList" reloadFlag=1 fresh="true">会员卡折扣</a></li>
									<!-- 
									<shiro:hasPermission name="listScoreRule">
										<li><a href="<%=path %>/scoreRule/listScoreRule.action" target="navTab" rel="scoreRuleList" reloadFlag=1 fresh="true">积分规则</a></li>
									</shiro:hasPermission>
									 -->
							</ul>
						</div>
					</shiro:hasAnyRoles>
					<shiro:hasAnyRoles name="listAffiche">
						<div class="accordionHeader">
							<h2><span>Folder</span>公告管理</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
								<shiro:hasPermission name="listAffiche">
								<li><a href="<%=path%>/affiche/listAffiche.action" target="navTab" rel="afficheList" reloadFlag=1 fresh="true">公告列表</a></li>
								</shiro:hasPermission>
							</ul>
						</div>
					</shiro:hasAnyRoles>
					<shiro:hasAnyRoles name="listAdvertising">
						<div class="accordionHeader">
							<h2><span>Folder</span>广告管理</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
								<shiro:hasPermission name="listAdvertising">
								<li><a href="<%=path%>/advertising/listAdvertising.action" target="navTab" rel="advertisingList" reloadFlag=1 fresh="true">广告列表</a></li>
								</shiro:hasPermission>
							</ul>
						</div>
					</shiro:hasAnyRoles>
					<shiro:hasAnyRoles name="listActive">
						<div class="accordionHeader">
							<h2><span>Folder</span>活动管理</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
								<shiro:hasPermission name="listActive">
								<li><a href="<%=path%>/active/listActive.action" target="navTab" rel="activeList" reloadFlag=1 fresh="true">活动列表</a></li>
								</shiro:hasPermission>
							</ul>
						</div>
					</shiro:hasAnyRoles>
					<shiro:hasAnyRoles name="listMsgTemplate,listSendMsg,listMessage">
						<div class="accordionHeader">
							<h2><span>Folder</span>消息管理</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
								<shiro:hasPermission name="listMsgTemplate">
										<li><a href="<%=path %>/msgTemplate/listMsgTemplate.action" target="navTab" rel="msgtemplateList" reloadFlag=1 fresh="true">消息模板管理</a></li>
							    </shiro:hasPermission>
								<shiro:hasPermission name="listSendMsg">
										<li><a href="<%=path %>/sendMsg/listSendMsg.action" target="navTab" rel="sendMsgList" reloadFlag=1 fresh="true">短信发送列表</a></li>
							    </shiro:hasPermission>
								<shiro:hasPermission name="listMessage">
										<li><a href="<%=path %>/message/listMessage.action" target="navTab" rel="messageList" reloadFlag=1 fresh="true">消息发送列表</a></li>
							    </shiro:hasPermission>
							</ul>
						</div>
					</shiro:hasAnyRoles>
					<shiro:hasAnyRoles name="listRoles,listLog,listPermissions">
						<div class="accordionHeader">
							<h2><span>Folder</span>权限管理</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
										<shiro:hasPermission name="listRoles">
										<li><a href="<%=path %>/roles/listRoles.action" target="navTab" rel="rolesList" reloadFlag=1 fresh="true">角色列表</a></li>
										</shiro:hasPermission>
										<shiro:hasPermission name="listPermissions">
											<li><a href="<%=path %>/permissions/listPermissions.action" target="navTab" rel="permissonsList" reloadFlag=1 fresh="true">权限列表</a></li>
										</shiro:hasPermission>
										<shiro:hasPermission name="listLog">
										<li><a href="<%=path %>/log/listLog.action" target="navTab" rel="logList" reloadFlag=1 fresh="true">操作日志</a></li>
										</shiro:hasPermission>
							</ul>
						</div>
					</shiro:hasAnyRoles>
					<shiro:hasAnyRoles name="config">
						<div class="accordionHeader">
							<h2><span>Folder</span>客户端管理</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
										<shiro:hasPermission name="config">
										<li><a href="<%=path %>/config/listConfig.action" target="navTab" rel="configList" reloadFlag=1 fresh="true">客户端信息管理</a></li>
										</shiro:hasPermission>
										<shiro:hasPermission name="viewMobileMessage">
										<li><a href="<%=path %>/mobileMessage/listMobileMessage.action" target="navTab" rel="mobileMessageList" reloadFlag=1 fresh="true">留言反馈</a></li>
										</shiro:hasPermission>
										<li><a href="<%=path %>/mobileUpdate/listMobileUpdate.action" target="navTab" rel="mobileUpdateList" reloadFlag=1 fresh="true">客户端版本更新</a></li>
										<li><a href="<%=path %>/appMark/listAppMark.action" target="navTab" rel="appMarkList" reloadFlag=1 fresh="true">应用推荐</a></li>
										<li><a href="<%=path %>/appInit/listAppInit.action" target="navTab" rel="appInitList" reloadFlag=1 fresh="true">App启动图片配置</a></li>
							</ul>
						</div>
					</shiro:hasAnyRoles>
					<shiro:hasAnyRoles name="webManager">
						<div class="accordionHeader">
							<h2><span>Folder</span>WEB管理</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
								<shiro:hasPermission name="webManager">
								<li><a href="<%=path%>/webManager/listPic.action?type=1" target="navTab" rel="listFile" reloadFlag=1 fresh="true">文件列表</a></li>
								<li><a href="<%=path%>/webManager/listPic.action?type=0" target="navTab" rel="listPic" reloadFlag=1 fresh="true">图片列表</a></li>
								</shiro:hasPermission>
							</ul>
						</div>
					</shiro:hasAnyRoles>
					
					<shiro:hasAnyRoles name="rechargeFeedbackTaskLog">
						<div class="accordionHeader">
							<h2><span>Folder</span>任务记录</h2>
						</div>
						<div class="accordionContent">
							<ul class="tree treeFolder">
									<shiro:hasPermission name="rechargeFeedbackTaskLog">
										<li><a href="<%=path %>/rechargeFeedbackTaskLog/listRechargeFeedbackTaskLog.action" target="navTab" rel="rechargeFeedbackTaskLogList" reloadFlag=1 fresh="true">充值返回任务记录</a></li>
									</shiro:hasPermission>
									<shiro:hasPermission name="notificationTaskLog">
										<li><a href="<%=path %>/notificationTaskLog/listNotificationTaskLog.action" target="navTab" rel="notificationTaskLogList" reloadFlag=1 fresh="true">提醒记录管理</a></li>
									</shiro:hasPermission>
							</ul>
						</div>
					</shiro:hasAnyRoles>
				</div>

			</div>
		</div>
		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:;"><span><span class="home_icon">我的主页</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:;">我的主页</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
						<div class="accountInfo" style="height: 50px">
							<p></p>
							<p><span>欢迎使用一卡会员管理系统</span></p>
						</div>
						<div class="pageFormContent" layoutH="65" id="mainFrameLayoutHDIV">
						<div style="width:100%;height:100%">
							<iframe width="100%" height="100%" class="share_self" frameborder="0" scrolling="no" src="<%=path%>/affiche/listWebAffiche.action"></iframe>
						</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="footer">Copyright &copy; 2012 yoUnion.</div>
</body>
</html>